package org.dreamfly.core.service;

import org.dreamfly.core.bean.SzUser;
import org.dreamfly.core.bean.SzUsers;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gin
 * Date: 8/12/11
 * Time: 9:44 AM
 * To change this template use File | Settings | File Templates.
 */
public interface UserService {
    void addUser(SzUsers user);
    void updateUser(SzUsers user);
    void updateUserInfo(SzUsers user);
    void clearUserAuthorities(SzUsers user);
    void deleteUser(SzUsers user);
    SzUsers findUser(Long id);
    SzUsers findUserByName(String username);
    SzUsers findAdmin();
    List<SzUsers> findUserList();
    List<SzUsers> findNewUserList();
}
